<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="../../../../css/icon.css">
    <link rel="stylesheet" type="text/css" href="../../../../css/easyui.css">
    <script type="text/javascript" src="../../../../js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="../../../../js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../../js/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript">
        var datagrid;
        var message =$.messager;
        var operateDialog;
        $(function(){
            datagrid = $('#datagrid').datagrid({
                rowStyler: function(index,row){
                    if(row['actualCloseDate']==null || row['actualCloseDate']==''){
                        return 'background-color:yellow';
                    }else if(row['startDate']!=null || row['startDate']!=''){
                        var startDate=(new Date(row['startDate'])).getTime();
                        var actualCloseDate=(new Date(row['actualCloseDate'])).getTime();
                        if((actualCloseDate-startDate)>20*24*60*60*1000){
                            return 'background-color:#bc8f8f;';
                        }else{
                            return 'background-color:#adff2f;';
                        }
                    }
                }
            });
        });
        function add_() {
            var href = "claimField_add.html";
            operateDialog = $("#operateDialog").dialog({title : '创建',width:800,height:550});
            $("#operateIFrame")[0].src=href;
            operateDialog.dialog('open');
        }
    </script>
</head>
<body class="easyui-layout">
<div data-options="region:'north'" style="overflow:hidden;">
    <div class="datagrid-toolbar" style="height: auto">
        <br/>
        <fieldset>
            <legend>Condition查询条件</legend>
            <table width="100%">
                <tr>
                    <td align="right">ClaimNumb投诉编号：</td>
                    <td>
                        <input type="text"/>
                    </td>
                    <td align="right">SupplierNumb供应商编号：</td>
                    <td>
                        <input type="text"/>
                    </td>
                    <td align="right">SupplierName供应商名称：</td>
                    <td>
                        <input type="text"/>
                    </td>
                </tr>
            </table>
        </fieldset>
        <br/>
    </div>
</div>
<div data-options="region:'center'">
    <div id="tb">
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-search">Search查询</a>
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-undo">Reset重置</a>
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-add" onclick="add_();">Add新增</a>
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-edit" onclick="">Modify修改</a>
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-cancel">Delete删除</a>
        <!--<a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-import">Import导入</a>-->
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-export">Export导出</a>
        <a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-view" onclick="">预览</a>

        <!--<a class="easyui-linkbutton" href="javascript:void(0);" plain="true" iconCls="icon-close" onclick="close_();">Close关闭</a>-->
    </div>
    <table id="datagrid" toolbar="#tb" pagination="true" fit="true" nowrap="false">
        <thead>
        <tr>
            <th field="ck" checkbox="true" rowspan="2"></th>
            <th field="9" width="100" align="center" rowspan="2">ClaimCode<br/>投诉编号</th>
            <th field="1" width="80" align="center" rowspan="2">PartCode<br/>零件编号</th>
            <th field="2" width="80" align="center" rowspan="2">SupplierCode<br/>供应商编码</th>
            <th field="3" width="120" align="center" rowspan="2">SupplierName<br/>供应商名称</th>
            <th field="4" width="100" align="center" rowspan="2">WorkshopCode<br/>车间代码</th>
            <th field="10" width="80" align="center" rowspan="2">findPlace<br/>发现地点</th>
            <th field="startDate" width="80" align="center" rowspan="2">StartDate<br/>投诉日期</th>
            <th field="planCloseDate" width="80" align="center" rowspan="2">planCloseDate<br/>计划关闭日期</th>
            <th field="actualCloseDate" width="80" align="center" rowspan="2">actualCloseDate<br/>实际关闭日期</th>
            <th field="8" width="80" align="center" rowspan="2">manageBody<br/>经营体</th>
            <th field="11" width="100" align="center" rowspan="2">ProblemReportNum<br/>不合格品报告号</th>
            <th field="12" width="100" align="center" rowspan="2">ClaimDesc<br/>问题描述</th>
            <th align="center" colspan="6">ClaimSituation<br/>声明情形</th>
            <th field="13" width="140" align="center" rowspan="2">ClaimsPartsAtCustomer<br/>客户投诉问题数</th>
            <th field="14" width="140" align="center" rowspan="2">AcceptedPartsBySupplier<br/>被供应商采纳的问题数</th>
            <th field="15" width="140" align="center" rowspan="2">PartsReceivedLastYear(12RollingMonths)<br/>过去一年采纳的问题数)</th>
            <th field="16" width="80" align="center" rowspan="2">PPMs</th>
            <th field="722" width="100" align="center" rowspan="2">ClaimType<br/>声明类型</th>
            <th field="17" width="80" align="center" rowspan="2">Resp<br/>投诉人</th>
            <th field="18" width="100" align="center" rowspan="2">AffectedParts<br/>影响部分值</th>
            <th field="19" width="140" align="center" rowspan="2">Remarks<br/>评论</th>
            <th width="110" align="center" colspan="2">Incoming</th>
            <!--<th field="13" width="100" align="center" rowspan="2">Quantity<br/>不合格数量</th>-->
            <!--<th width="240" align="center" colspan="6">IPICEvaluation值</th>-->
            <!--<th field="722" width="100" align="center" rowspan="2">ClaimType<br/>声明类型</th>-->
            <!--<th field="14" width="80" align="center" rowspan="2">Resp<br/>投诉人</th>-->
            <!--<th field="15" width="80" align="center" rowspan="2">AffectedParts</th>-->
            <!--<th field="16" width="100" align="center" rowspan="2">Remarks<br/>评论</th>-->
            <!--<th width="80" align="center" colspan="2">Incoming</th>-->
        </tr>
        <tr>
            <!--<th field="CS_1" width="60" align="center">1</th>
            <th field="CS_2" width="60" align="center">2</th>
            <th field="CS_3" width="60" align="center">3</th>-->
            <th field="CS_4" width="70" align="center">4</th>
            <th field="CS_5" width="70" align="center">5</th>
            <th field="CS_6" width="70" align="center">6</th>
            <th field="CS_7" width="70" align="center">7</th>
            <th field="CS_8" width="70" align="center">8</th>
            <th field="CS_9" width="70" align="center">9</th>
            <!--<th field="IPIC_C" width="40" align="center">C</th>
            <th field="IPIC_P" width="40" align="center">P</th>
            <th field="IPIC_R" width="40" align="center">R</th>
            <th field="IPIC_D" width="40" align="center">D</th>
            <th field="IPIC_Ca" width="40" align="center">Ca</th>
            <th field="IPIC_Tot" width="40" align="center">TOT</th>-->
            <th field="20" width="70" align="center">PPMAtNumberOf</th>
            <th field="21" width="40" align="center">Closed</th>
        </tr>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td></td>
            <td>SCR-W1-A-07-001</td>
            <td>M5932002</td>
            <td>91130</td>
            <td>上海达克罗涂覆工业有限公司</td>
            <td>AG/空调</td>
            <td>IAP</td>
            <td>2007-01-05</td>
            <td>2007-01-25</td>
            <td>2007-01-15</td>
            <td></td>
            <td>T</td>
            <td>表面处理问题</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td>Technical</td>
            <td>ZJQ朱佳权</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td>SCR-W2-C-07-002</td>
            <td>L9970&L9971</td>
            <td>31118</td>
            <td>Suzhou Shuanglin苏州双林汽车配件有限公司</td>
            <td>AG/空调</td>
            <td>IQM/来料检验</td>
            <td>2007-01-04</td>
            <td>2007-01-24</td>
            <td>2007-03-04</td>
            <td>00112084</td>
            <td>T</td>
            <td>标签不明确</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td>Logistic</td>
            <td>ZXQ朱相秋</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td>SCR-W2-C-07-002</td>
            <td>L9970&L9971</td>
            <td>31118</td>
            <td>Suzhou Shuanglin苏州双林汽车配件有限公司</td>
            <td>AG/空调</td>
            <td>IQM/来料检验</td>
            <td>2007-01-15</td>
            <td>2007-02-05</td>
            <td>2012-02-09</td>
            <td>00112084</td>
            <td>T</td>
            <td>标签不明确</td>
            <td>2012-1-7</td>
            <td>2012-1-9</td>
            <td>2012-1-10</td>
            <td>2012-2-7</td>
            <td>2012-2-9</td>
            <td>NA</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td>Logistic</td>
            <td>ZXQ朱相秋</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        </tbody>
    </table>
</div>
<div id="operateDialog" class="easyui-dialog"
     data-options="iconCls:'icon-save',resizable:true,modal:true,closed: true,collapsible:true,maximizable:true">
    <iframe scrolling="auto" id='operateIFrame' frameborder="0"  src="" style="width:100%;height:100%;"/>
</div>
</body>
</html>